package com.rentplant.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.rentaljudgeanduser;
import com.rentplant.mapper.rentalJudgeMapper;
import com.rentplant.service.rentalJudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service //让他知道这是service
public class rentalJudgeServiceImp implements rentalJudgeService {
    @Autowired
    private rentalJudgeMapper rentaljudgemapper;


    @Override
    //查询该求租信息的评论
    public List<rentaljudgeanduser> rentalJudge(JSONObject rentaljudgeinfo) {
        return rentaljudgemapper.rentalJudge(rentaljudgeinfo);
    }

    @Override
    //发布求租信息评论
    public  boolean addRentalJudge(JSONObject rentaljudgeinfo){
        return rentaljudgemapper.addRentalJudge(rentaljudgeinfo);
    }

}
